/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package org.abc;

import java.time.Year;
import java.util.Random;

/**
 * <p>Project: jse2303 - Rand1
 * <p>Powered by webrx On 2023-07-10 17:15:34
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Rand3 {
    public static void main(String[] args) {
        Random rand = new Random(1);

        Year year = Year.now();
        System.out.println(year.isLeap());
        //rand.nextBoolean()
        //rand.nextDouble()
        for (int i = 0; i < 18; i++) {
            System.out.printf("%.2f%n", rand.nextDouble(-2, 2));
            //System.out.println(rand.nextInt(5)); //0 1 2 不包括3
            //System.out.println(rand.nextInt(1, 11));//
        }
    }
}
